CC=gcc
JAVAC=javac

JAVA_INCLUDE=/usr/lib/jvm/java-6-sun/include

CFLAGS= -O3 -ansi -Wall -g -fPIC

OBJ     = $(SRC:.c=.o)

.SILENT:

all: 
	$(JAVAC) Perseus.java
	$(JAVAC) PerseusTest.java
	$(CC) -c perseus-jni.c -I$(JAVA_INCLUDE) -I$(JAVA_INCLUDE)/linux
	$(CC) -o libperseus-jni.so perseus-jni.o ../perseus.o -shared

clean:
	rm -f *.o *.so *.class 
